<?php
require_once ROOT_ADMIN_MODELS.DS.'Models_Base.php';
class Model_Group extends Models_Base{		    
    public function __construct(){
    	parent::__construct();
    	$this->_key="id";
    	$this->_table="group";
       // $this->db=Zend_Registry::get('db');
    }
    public function listGroup()
    {
       	 $sql="SELECT * 
       	 		FROM 
       	 			`group` 				
				ORDER BY 
					id ASC
             ";
        $data=$this->_db->fetchAll($sql,null,Zend_Db::FETCH_OBJ);
        return $data;
    }
    
    public function addGroup($obj)
    {
    	parent::_insert($obj);
    }
    
    public function editGroup($id)
    {
    	parent::_update($id);
    }
}
		